package cn.myjerry.chainOfResp;

public class Client {
	public static void main(String[] args) {
		Leader director = new Director("主任");
		Leader manager = new Manager("经理");
		Leader GeneralManager = new GeneralManager("总经理");
		
		
		director.setNextLeader(manager);
		manager.setNextLeader(GeneralManager);
		
		LeaveRequest req = new LeaveRequest("Jerry", 31, "test");
		director.handleRequest(req);
	}
}
